FROM zhibaocloud/z-track-base:v1

WORKDIR /app
ADD .npmrc package.json yarn.lock /app/
RUN yarn install

ADD . /app
ADD docker/startup.sh /app/

ARG GIT_COMMIT=unspecified
ENV VERSION=${GIT_COMMIT}
ENV SCREEN_HEIGHT=1200
ENV SCREEN_WIDTH=1600

EXPOSE 3002
EXPOSE 5900

CMD ["/app/startup.sh"]
